﻿<Selection:SelectControl x:Class="jSLApp.Client.Forms.MessageList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Selection="clr-namespace:jSLCore.Client.Presentation.BaseControl.Selection;assembly=jSLCore.Client.Presentation" xmlns:j="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation" xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:Controls="clr-namespace:jSLApp.Client.Controls" mc:Ignorable="d"
                         AcceptButtonName="searchButton" MaxWidth="650" 
    d:DesignHeight="300" d:DesignWidth="400">
    <j:ImageGroupBox>
        <j:ImageGroupBox.Header>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Поиск:" VerticalAlignment="Center"/>
                <TextBox Width="150" x:Name="txt"/>                    
                <Button Content="Обновить" Name="searchButton"/>
                <Button Content="Создать" Click="createMessage_Clicked"/>
            </StackPanel>
        </j:ImageGroupBox.Header>
        <tk:TabControl>
            <tk:TabItem Header="Входящие">
                <Controls:MessageGrid x:Name="inGrid">
                    <Controls:MessageGrid.Columns>
                        <Selection:DataGridImageButtonColumn ButtonImage="../Resources/Menu.png" ButtonTooltip="Ответить" Click="reply_Clicked"/>
                    </Controls:MessageGrid.Columns>
                </Controls:MessageGrid>
            </tk:TabItem>
            <tk:TabItem Header="Исходящие" >
                <Controls:MessageGrid x:Name="outGrid" HightlightNew="False"/>
            </tk:TabItem>
        </tk:TabControl>
    </j:ImageGroupBox>
</Selection:SelectControl>
